package com.situ.day5;

public class Teacher {
    //成员变量、实例变量
    int id;
    String name;
    int age;
    //静态变量
    static String className = "Java230301";


    //成员方法、实例方法
    public void show() {
        System.out.println("Teacher.show");
    }

    public static void info() {
        System.out.println("Teacher.info");
    }

    //静态方法
    public static void print() {
        info();
        //show();

        //Non-static field 'name' cannot be referenced from a static context
        //System.out.println(name);
        System.out.println(className);
        System.out.println("Teacher.print");
    }
}
